A graphical menu bar, appended on top of windows. More...
Public Member Functions | |
| MenuBar () | |
| virtual | ~MenuBar () |
| Component * | getParentComponent () const |
| void | setParentComponent (Component *parent) |
| virtual void | addMenu (const char *label)=0 |
| virtual void | addMenuItem (const char *menuLabel, const char *itemLabel, int attachedIndex)=0 |
| virtual void | addSeparator (const char *menuLabel)=0 |
| virtual void | exportClassToTree (nkExport::Node *rootNode) override |
| virtual void | importClassFromTree (nkExport::Node *rootNode) override |
Public Member Functions inherited from nkExport::Exportable | |
| Exportable () | |
| virtual | ~Exportable () |
A graphical menu bar, appended on top of windows.
| nkWinUi::MenuBar::MenuBar | ( | ) |
Constructor.
|
virtual |
Destructor.
| void nkWinUi::MenuBar::setParentComponent | ( | Component * | parent | ) |
Sets the component owning the menu bar.
| parent | The parent component to set. |
|
pure virtual |
Add a menu to the bar.
| label | The menu label. |
|
pure virtual |
Add a menu item to a menu in the bar.
| menuLabel | The name of the menu that should receive the item. Will be created if non existent. |
| itemLabel | The label of the item to add. |
| attachedIndex | The index to identify the item. Will be used with callbacks. |
|
pure virtual |
Adds a separator to a menu.
| menuLabel | The name ot the menu that should receive the separator. |
|
overridevirtual |
Basic exporting capability.
| rootNode | The root of the tree to export to. |
Implements nkExport::Exportable.
|
overridevirtual |
Basic importing capability.
| rootNode | The root of the tree to import from. |
Implements nkExport::Exportable.